package com.zy.yun.provider.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zy.yun.base.entity.Res;

import com.zy.yun.provider.dao.ResMapper;
import com.zy.yun.provider.service.IResService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 资源表 服务实现类
 * </p>
 *
 * @author 王彦委
 * @since 2019-09-19
 */
@Service
public class ResServiceImpl extends ServiceImpl<ResMapper, Res> implements IResService {


    @Resource
    private ResMapper resMapper;

    /**
     * @Author: 王彦委
     * @Description: 根据用户角色id,查询对应的资源
     * @Date: 22:17 2019/11/5
     */
    @Override
    public List<Res> selectResByRoleId(Long roleId) {
        return resMapper.selectResByRoleId(roleId);
    }
}
